﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Randata.Test.Model;

namespace Randata.Test
{
    [TestClass]
    public class CustomObjectTest
    {
        [TestMethod]
        public void CustomDataProvider_Should_work()
        {
            Person p = DataProvider.Any<Person>();
        }

        [TestMethod]
        public void CustomDataProvider_Should_be_filled()
        {
            Person p = DataProvider.Any<Person>();

            Assert.IsNotNull(p.Name, "Should fill the string property.");
            Assert.IsNotNull(p.Age, "Should fill the int property.");
        }

    }
}
